package cn.pn.project.client.schedule.follback;

import cn.pn.project.client.schedule.CommoditySessionFeign;
import cn.pn.project.pojo.schedule.Commoditysession;
import org.springframework.stereotype.Component;

import java.sql.SQLException;
import java.util.List;

@Component
public class CommoditySessionFallBack  implements CommoditySessionFeign {

    /**
     * 根据场次id查询场次信息
     * @param sessionIds
     * @return
     * @throws SQLException
     */
    @Override
    public List<Commoditysession> getCommoditysessionBySessionId(String sessionIds) throws SQLException {
        System.out.println("根据场次id查询场次信息时报错了");
        return null;
    }

    /**
     * 根据场地id查询场次信息
     * @param placeId
     * @return
     * @throws SQLException
     */
    @Override
    public List<Commoditysession> getCommoditysessionByPlaceId(Integer placeId) throws SQLException {
        System.out.println("在进行根据场次id查询场地信息时出错了");
        return null;
    }

    /**
     * 根据场地id和场次时间查询场次id
     * @param placeId
     * @param sessionTime
     * @return
     * @throws SQLException
     */
    @Override
    public Commoditysession getCommoditysessionByPlaceIdAndSessionTime(Integer placeId, String sessionTime) throws SQLException {
        System.out.println("在进行根据场地id和场次时间查询场次信息时出错了");
        return null;
    }
}
